<script language="javascript">
/*************实现全选效果***************/
function selectall_m(){
	for(var i=0;i<document.form1.elements.length;i++){
		var e=document.form1.elements[i];
		if(e.name!='all_m')
			if(e.name=='must[]')
			e.checked=document.form1.all_m.checked;
	}
}
function selectall_ch(){
	for(var i=0;i<document.form1.elements.length;i++){
		var e=document.form1.elements[i];
		if(e.name!='all_ch')
			if(e.name=='choice[]')
			e.checked=document.form1.all_ch.checked;
	}
}
function check(){
	var name=form1.formtitle.value;
	if (name==""){
	    alert("表格标题不能为空");
		form1.formtitle.focus();
		return false;
    }
//form1.submit;
}
</script>

<html>
<head>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
.frame{
	border-top:solid 1 #09F;
	border-bottom:solid 1 #09F;
	border-left:solid 1 #09F;
	border-right:solid 1 #09F;
	background-color:#EEE;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">增加表格</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
<td valign="top" bgcolor="#F7F8F9">

  <form name="form1" method="post" action="form_view.php" enctype="multipart/form-data" id="form1">
  <p style="font-weight:bold">&nbsp;<h2>新增的表格标题：
    <input name="formtitle" type="text" size="40" id="title" maxlength="40"/></h2>
  </p>
  <p style="color:#36C">(请选择你所需要的表格元素，选项如下)</p>
  <hr align="left" width="80%" />
  <table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr align="center">
    <td width="10%"><input name="all_m" type="checkbox" value="必填" onClick="selectall_m();"/>必填(*)</td>
    <td width="15%" align="left"><input name="all_ch" type="checkbox" value="元素" onClick="selectall_ch();"/>表格元素</td>
    <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;预览</td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="姓名:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="姓名:" />姓名：
    </td>
    <td>&nbsp;姓名：
      <input name="name" type="text" id="name" size="20" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="学号:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="学号:" />学号：
    </td>
    <td>&nbsp;学号：
      <input name="stu_no" type="text" id="stu_no" size="20" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="性别:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="性别:" />性别：
    </td>
    <td>&nbsp;性别：
      <input name="sex" type="radio" value="1" checked />男
             <input name="sex" type="radio" value="0" />女
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="民族:" />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="民族:" />民族：
    </td>
    <td>&nbsp;民族：
      <input name="people" type="text" size="20" id="people" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="籍贯:" />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="籍贯:" />籍贯：
    </td>
    <td>&nbsp;籍贯：
      <input name="hometown" type="text" size="20" id="hometown" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="学院:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="学院:" />学院：
    </td>
    <td>&nbsp;学院
      <input name="college" type="text" size="20" id="college" maxlength="30" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="专业:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="专业:" />专业：
    </td>
    <td>&nbsp;专业：
      <input name="speciality" type="text" size="20" id="speciality" maxlength="30" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="年级:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="年级:" />年级：
    </td>
    <td>&nbsp;年级：
      <input name="grade" type="text" size="10" id="grade" maxlength="10" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="出生日期:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="出生日期:" />出生日期：
    </td>
    <td>&nbsp;出生日期：
      <input name="birthday" type="text" size="10" id="birthday" maxlength="10" />
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="政治面貌:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="政治面貌:" />政治面貌：
    </td>
    <td>&nbsp;政治面貌：
      <select name="political_status" id="political_status" >
          <option value="0">中共党员</option>
          <option value="1" selected>共青团员</option>
          <option value="2">群众</option>
      </select>
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="手机长号:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="手机长号:" />手机长号：
    </td>
    <td>&nbsp;手机长号：
      <input name="phone" type="text" size="20" id="phone" maxlength="30" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="手机短号:" />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="手机短号:" />手机短号：
    </td>
    <td>&nbsp;手机短号：
      <input name="ph_short" type="text" size="20" id="ph_short" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="QQ号码:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="QQ号码:" />QQ号码：
    </td>
    <td>&nbsp;QQ号码：
      <input name="qq" type="text" id="qq" size="20" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="MSN号码:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="MSN号码:" />MSN号码：
    </td>
    <td>&nbsp;MSN号码：
      <input name="msn" type="text" id="msn" size="20" maxlength="20" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="Email地址:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="Email地址:" />Email地址：
    </td>
    <td>&nbsp;Email地址：
      <input name="email" type="text" size="40" id="email" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="宿舍地址:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="宿舍地址:" />宿舍地址：
    </td>
    <td>&nbsp;宿舍地址：
      <input name="address" type="text" size="40" id="address" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="感兴趣的部门:" />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="感兴趣的部门:" />感兴趣的部门：
    </td>
    <td>&nbsp;感兴趣的部门：
      <input name="department" type="text" size="40" id="department" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="自我介绍:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="自我介绍:" />自我介绍：
    </td>
    <td>&nbsp;自我介绍：
      <textarea name="self_intr" cols="40" rows="5" wrap="soft"> (请在此输入你的自我介绍) </textarea>
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="个人经历:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="个人经历:" />个人经历：
    </td>
    <td>&nbsp;个人经历：
      <textarea name="personal" cols="40" rows="5" wrap="soft"> (请在此输入你的个人经历) </textarea>
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="奖惩情况:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="奖惩情况:" />奖惩情况：
    </td>
    <td>&nbsp;奖惩情况：
      <textarea name="award" cols="40" rows="5" wrap="soft"> (请在此输入你的奖惩情况)</textarea>
    </td>
  </tr>
  <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="意见/建议:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="意见/建议:" />意见/建议：
    </td>
    <td>&nbsp;意见/建议：
      <textarea name="idea" cols="40" rows="5" wrap="soft"> (请在此输入你的意见或建议)</textarea>
    </td>
  </tr>
    <tr>
    <td align="center">
      <input name="must[]" type="checkbox" value="备注:"  />
    </td>
    <td align="left">
      <input name="choice[]" type="checkbox" value="备注:" />备注：
    </td>
    <td>&nbsp;备注：
      <textarea name="remarks" cols="40" rows="5" wrap="soft"> </textarea>
    </td>
  </tr>
  <tr>
   <td height="10"></td>
   <td></td>
   <td></td>
  </tr>
  <tr>
    <td colspan="2" align="right">
       <input type="submit" name="submit" value="提交" onClick="check();"/>
    </td>
    <td align="left">&nbsp;&nbsp;&nbsp;
       <input type="submit" name="foreview" value="预览" />&nbsp;&nbsp;&nbsp;
       <input type="reset" name="Reset" value="重置" />
    </td>
   </tr>
</table>
</form>
</td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
</html>